
set(SRC_DIR
    "."
    "fs"
    "hal"
    "hal/screen_hal"
    "rose"
    "rose/app"
)

# 查找source目录下的所有*.cpp,*.c源文件,并将文件列表保存到 DIR_LIB_SRCS 变量
file(GLOB_RECURSE SRC_DIR_LIST "../main/*.cpp" "../main/*.c")
message(STATUS "SRC_DIR_LIST = ${SRC_DIR_LIST}")

file(GLOB_RECURSE SRC_INCLUDE_LIST "../main/*.h")
message(STATUS "SRC_INCLUDE_LIST = ${SRC_INCLUDE_LIST}")

#file(GLOB_RECURSE SRC_INCLUDE_PATH
#    LIST_DIRECTORIES true
#    "../main/*.h")
#message(STATUS "SRC_INCLUDE_PATH = ${SRC_INCLUDE_PATH}")

set (LOCAL_INCLUDE_DIRS
    "." "./hal/" "./hal/utils/" "./hal/screen_hal/" "./hal/servers/" "./hal/screen_hal/" "./rose" "./rose/app/" "./cstm_driver/"
)

idf_component_register(SRC_DIRS "${SRC_DIR}" SRCS "${SRC_DIR_LIST}"
                        INCLUDE_DIRS "${LOCAL_INCLUDE_DIRS}")
